package com.dynabook.ems.model.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * 工单BOM简化查询响应VO
 */
@Data
@ApiModel(value = "工单BOM简化信息", description = "工单BOM的简化详情信息")
public class WorkOrderBomSimpleVO {

    @ApiModelProperty(value = "成品型号")
    private String productName;

    @ApiModelProperty(value = "成品名称")
    private String finishProductName;

    @ApiModelProperty(value = "机型名称")
    private String machineName;

    @ApiModelProperty(value = "版本")
    private String version;

    @ApiModelProperty(value = "是否可编辑")
    private Boolean canEdit;

    @ApiModelProperty(value = "生产数量")
    private Integer productionQuantity;

    @ApiModelProperty(value = "BOM详情项列表")
    private List<BomSimpleItem> bomDetails;



    /**
     * BOM简化详情项
     */
    @Data
    @ApiModel(value = "BOM简化详情项", description = "BOM详情的简化信息")
    public static class BomSimpleItem {
        
        @ApiModelProperty(value = "ID")
        private String id;
        
        @ApiModelProperty(value = "样品型号")
        private String modelType;
        
        @ApiModelProperty(value = "样品名称")
        private String modelName;

        @ApiModelProperty(value = "状态")
        private String detailStatus;
        
        @ApiModelProperty(value = "样品分类")
        private String category;
        
        @ApiModelProperty(value = "BOM数量")
        private Integer bomQuantity;
        
        @ApiModelProperty(value = "总数")
        private Integer totalNum;
        
        @ApiModelProperty(value = "单位")
        private String modelUnit;
        
        @ApiModelProperty(value = "类型")
        private String modelCategory;
        
        @ApiModelProperty(value = "备注")
        private String remark;
    }
}